package com.mew.lobby.provide;

import com.mew.common.rest.login.LoginGuestRequestMessage;
import com.mew.common.rest.login.LoginResponseMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;


@Component
@FeignClient(value = "mew-kernel-user")
public interface LoginExitFeignService {


    @PostMapping(value = "/login/guest")
    @ResponseBody
    LoginResponseMessage loginGuest(@RequestBody LoginGuestRequestMessage requestVO);

    @GetMapping(value = "/exit/{uid}/{exitType}")
    @ResponseBody
    Integer exitLobby(@PathVariable("uid") long uid, @PathVariable("exitType") int exitType);

    @GetMapping(value = "/clear/{uid}")
    @ResponseBody
    Integer exitGame(@PathVariable("uid") long uid);

}
